Integrand size = 16, antiderivative size = 223 \[ \int \frac {x^2}{\sqrt {a+b \arccos (c x)}} \, dx=-\frac {\sqrt {\frac {\pi }{2}} \cos \left (\frac {a}{b}\right ) \operatorname {FresnelS}\left (\frac {\sqrt {\frac {2}{\pi }} \sqrt {a+b \arccos (c x)}}{\sqrt {b}}\right )}{2 \sqrt {b} c^3}-\frac {\sqrt {\frac {\pi }{6}} \cos \left (\frac {3 a}{b}\right ) \operatorname {FresnelS}\left (\frac {\sqrt {\frac {6}{\pi }} \sqrt {a+b \arccos (c x)}}{\sqrt {b}}\right )}{2 \sqrt {b} c^3}+\frac {\sqrt {\frac {\pi }{2}} \operatorname {FresnelC}\left (\frac {\sqrt {\frac {2}{\pi }} \sqrt {a+b \arccos (c x)}}{\sqrt {b}}\right ) \sin \left (\frac {a}{b}\right )}{2 \sqrt {b} c^3}+\frac {\sqrt {\frac {\pi }{6}} \operatorname {FresnelC}\left (\frac {\sqrt {\frac {6}{\pi }} \sqrt {a+b \arccos (c x)}}{\sqrt {b}}\right ) \sin \left (\frac {3 a}{b}\right )}{2 \sqrt {b} c^3} \]
[Out]
Time = 0.18 (sec) , antiderivative size = 223, normalized size of antiderivative = 1.00, number of steps used = 13, number of rules used = 7, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.438, Rules used = {4732, 4491, 3387, 3386, 3432, 3385, 3433} \[ \int \frac {x^2}{\sqrt {a+b \arccos (c x)}} \, dx=\frac {\sqrt {\frac {\pi }{2}} \sin \left (\frac {a}{b}\right ) \operatorname {FresnelC}\left (\frac {\sqrt {\frac {2}{\pi }} \sqrt {a+b \arccos (c x)}}{\sqrt {b}}\right )}{2 \sqrt {b} c^3}+\frac {\sqrt {\frac {\pi }{6}} \sin \left (\frac {3 a}{b}\right ) \operatorname {FresnelC}\left (\frac {\sqrt {\frac {6}{\pi }} \sqrt {a+b \arccos (c x)}}{\sqrt {b}}\right )}{2 \sqrt {b} c^3}-\frac {\sqrt {\frac {\pi }{2}} \cos \left (\frac {a}{b}\right ) \operatorname {FresnelS}\left (\frac {\sqrt {\frac {2}{\pi }} \sqrt {a+b \arccos (c x)}}{\sqrt {b}}\right )}{2 \sqrt {b} c^3}-\frac {\sqrt {\frac {\pi }{6}} \cos \left (\frac {3 a}{b}\right ) \operatorname {FresnelS}\left (\frac {\sqrt {\frac {6}{\pi }} \sqrt {a+b \arccos (c x)}}{\sqrt {b}}\right )}{2 \sqrt {b} c^3} \]
[In]
[Out]
Rule 3385
Rule 3386
Rule 3387
Rule 3432
Rule 3433
Rule 4491
Rule 4732
Rubi steps \begin{align*} \text {integral}& = \frac {\text {Subst}\left (\int \frac {\cos ^2\left (\frac {a}{b}-\frac {x}{b}\right ) \sin \left (\frac {a}{b}-\frac {x}{b}\right )}{\sqrt {x}} \, dx,x,a+b \arccos (c x)\right )}{b c^3} \\ & = \frac {\text {Subst}\left (\int \left (\frac {\sin \left (\frac {3 a}{b}-\frac {3 x}{b}\right )}{4 \sqrt {x}}+\frac {\sin \left (\frac {a}{b}-\frac {x}{b}\right )}{4 \sqrt {x}}\right ) \, dx,x,a+b \arccos (c x)\right )}{b c^3} \\ & = \frac {\text {Subst}\left (\int \frac {\sin \left (\frac {3 a}{b}-\frac {3 x}{b}\right )}{\sqrt {x}} \, dx,x,a+b \arccos (c x)\right )}{4 b c^3}+\frac {\text {Subst}\left (\int \frac {\sin \left (\frac {a}{b}-\frac {x}{b}\right )}{\sqrt {x}} \, dx,x,a+b \arccos (c x)\right )}{4 b c^3} \\ & = -\frac {\cos \left (\frac {a}{b}\right ) \text {Subst}\left (\int \frac {\sin \left (\frac {x}{b}\right )}{\sqrt {x}} \, dx,x,a+b \arccos (c x)\right )}{4 b c^3}-\frac {\cos \left (\frac {3 a}{b}\right ) \text {Subst}\left (\int \frac {\sin \left (\frac {3 x}{b}\right )}{\sqrt {x}} \, dx,x,a+b \arccos (c x)\right )}{4 b c^3}+\frac {\sin \left (\frac {a}{b}\right ) \text {Subst}\left (\int \frac {\cos \left (\frac {x}{b}\right )}{\sqrt {x}} \, dx,x,a+b \arccos (c x)\right )}{4 b c^3}+\frac {\sin \left (\frac {3 a}{b}\right ) \text {Subst}\left (\int \frac {\cos \left (\frac {3 x}{b}\right )}{\sqrt {x}} \, dx,x,a+b \arccos (c x)\right )}{4 b c^3} \\ & = -\frac {\cos \left (\frac {a}{b}\right ) \text {Subst}\left (\int \sin \left (\frac {x^2}{b}\right ) \, dx,x,\sqrt {a+b \arccos (c x)}\right )}{2 b c^3}-\frac {\cos \left (\frac {3 a}{b}\right ) \text {Subst}\left (\int \sin \left (\frac {3 x^2}{b}\right ) \, dx,x,\sqrt {a+b \arccos (c x)}\right )}{2 b c^3}+\frac {\sin \left (\frac {a}{b}\right ) \text {Subst}\left (\int \cos \left (\frac {x^2}{b}\right ) \, dx,x,\sqrt {a+b \arccos (c x)}\right )}{2 b c^3}+\frac {\sin \left (\frac {3 a}{b}\right ) \text {Subst}\left (\int \cos \left (\frac {3 x^2}{b}\right ) \, dx,x,\sqrt {a+b \arccos (c x)}\right )}{2 b c^3} \\ & = -\frac {\sqrt {\frac {\pi }{2}} \cos \left (\frac {a}{b}\right ) \operatorname {FresnelS}\left (\frac {\sqrt {\frac {2}{\pi }} \sqrt {a+b \arccos (c x)}}{\sqrt {b}}\right )}{2 \sqrt {b} c^3}-\frac {\sqrt {\frac {\pi }{6}} \cos \left (\frac {3 a}{b}\right ) \operatorname {FresnelS}\left (\frac {\sqrt {\frac {6}{\pi }} \sqrt {a+b \arccos (c x)}}{\sqrt {b}}\right )}{2 \sqrt {b} c^3}+\frac {\sqrt {\frac {\pi }{2}} \operatorname {FresnelC}\left (\frac {\sqrt {\frac {2}{\pi }} \sqrt {a+b \arccos (c x)}}{\sqrt {b}}\right ) \sin \left (\frac {a}{b}\right )}{2 \sqrt {b} c^3}+\frac {\sqrt {\frac {\pi }{6}} \operatorname {FresnelC}\left (\frac {\sqrt {\frac {6}{\pi }} \sqrt {a+b \arccos (c x)}}{\sqrt {b}}\right ) \sin \left (\frac {3 a}{b}\right )}{2 \sqrt {b} c^3} \\ \end{align*}
Result contains complex when optimal does not.
Time = 0.32 (sec) , antiderivative size = 225, normalized size of antiderivative = 1.01 \[ \int \frac {x^2}{\sqrt {a+b \arccos (c x)}} \, dx=\frac {e^{-\frac {3 i a}{b}} \left (3 e^{\frac {2 i a}{b}} \sqrt {-\frac {i (a+b \arccos (c x))}{b}} \Gamma \left (\frac {1}{2},-\frac {i (a+b \arccos (c x))}{b}\right )+3 e^{\frac {4 i a}{b}} \sqrt {\frac {i (a+b \arccos (c x))}{b}} \Gamma \left (\frac {1}{2},\frac {i (a+b \arccos (c x))}{b}\right )+\sqrt {3} \left (\sqrt {-\frac {i (a+b \arccos (c x))}{b}} \Gamma \left (\frac {1}{2},-\frac {3 i (a+b \arccos (c x))}{b}\right )+e^{\frac {6 i a}{b}} \sqrt {\frac {i (a+b \arccos (c x))}{b}} \Gamma \left (\frac {1}{2},\frac {3 i (a+b \arccos (c x))}{b}\right )\right )\right )}{24 c^3 \sqrt {a+b \arccos (c x)}} \]
[In]
[Out]
Time = 2.07 (sec) , antiderivative size = 198, normalized size of antiderivative = 0.89
method | result | size |
default | \(\frac {\sqrt {\pi }\, \sqrt {2}\, \sqrt {-\frac {1}{b}}\, \left (3 \sin \left (\frac {a}{b}\right ) \operatorname {FresnelC}\left (\frac {\sqrt {2}\, \sqrt {a +b \arccos \left (c x \right )}}{\sqrt {\pi }\, \sqrt {-\frac {1}{b}}\, b}\right )+3 \cos \left (\frac {a}{b}\right ) \operatorname {FresnelS}\left (\frac {\sqrt {2}\, \sqrt {a +b \arccos \left (c x \right )}}{\sqrt {\pi }\, \sqrt {-\frac {1}{b}}\, b}\right )-\sqrt {-\frac {1}{b}}\, \sqrt {-\frac {3}{b}}\, \cos \left (\frac {3 a}{b}\right ) \operatorname {FresnelS}\left (\frac {3 \sqrt {2}\, \sqrt {a +b \arccos \left (c x \right )}}{\sqrt {\pi }\, \sqrt {-\frac {3}{b}}\, b}\right ) b -\sqrt {-\frac {1}{b}}\, \sqrt {-\frac {3}{b}}\, \sin \left (\frac {3 a}{b}\right ) \operatorname {FresnelC}\left (\frac {3 \sqrt {2}\, \sqrt {a +b \arccos \left (c x \right )}}{\sqrt {\pi }\, \sqrt {-\frac {3}{b}}\, b}\right ) b \right )}{12 c^{3}}\) | \(198\) |
[In]
[Out]
Exception generated. \[ \int \frac {x^2}{\sqrt {a+b \arccos (c x)}} \, dx=\text {Exception raised: TypeError} \]
[In]
[Out]
\[ \int \frac {x^2}{\sqrt {a+b \arccos (c x)}} \, dx=\int \frac {x^{2}}{\sqrt {a + b \operatorname {acos}{\left (c x \right )}}}\, dx \]
[In]
[Out]
\[ \int \frac {x^2}{\sqrt {a+b \arccos (c x)}} \, dx=\int { \frac {x^{2}}{\sqrt {b \arccos \left (c x\right ) + a}} \,d x } \]
[In]
[Out]
Result contains complex when optimal does not.
Time = 0.48 (sec) , antiderivative size = 317, normalized size of antiderivative = 1.42 \[ \int \frac {x^2}{\sqrt {a+b \arccos (c x)}} \, dx=\frac {i \, \sqrt {\pi } \operatorname {erf}\left (-\frac {\sqrt {6} \sqrt {b \arccos \left (c x\right ) + a}}{2 \, \sqrt {b}} - \frac {i \, \sqrt {6} \sqrt {b \arccos \left (c x\right ) + a} \sqrt {b}}{2 \, {\left | b \right |}}\right ) e^{\left (\frac {3 i \, a}{b}\right )}}{4 \, {\left (\sqrt {6} \sqrt {b} + \frac {i \, \sqrt {6} b^{\frac {3}{2}}}{{\left | b \right |}}\right )} c^{3}} + \frac {i \, \sqrt {\pi } \operatorname {erf}\left (-\frac {i \, \sqrt {2} \sqrt {b \arccos \left (c x\right ) + a}}{2 \, \sqrt {{\left | b \right |}}} - \frac {\sqrt {2} \sqrt {b \arccos \left (c x\right ) + a} \sqrt {{\left | b \right |}}}{2 \, b}\right ) e^{\left (\frac {i \, a}{b}\right )}}{4 \, c^{3} {\left (\frac {i \, \sqrt {2} b}{\sqrt {{\left | b \right |}}} + \sqrt {2} \sqrt {{\left | b \right |}}\right )}} - \frac {i \, \sqrt {\pi } \operatorname {erf}\left (\frac {i \, \sqrt {2} \sqrt {b \arccos \left (c x\right ) + a}}{2 \, \sqrt {{\left | b \right |}}} - \frac {\sqrt {2} \sqrt {b \arccos \left (c x\right ) + a} \sqrt {{\left | b \right |}}}{2 \, b}\right ) e^{\left (-\frac {i \, a}{b}\right )}}{4 \, c^{3} {\left (-\frac {i \, \sqrt {2} b}{\sqrt {{\left | b \right |}}} + \sqrt {2} \sqrt {{\left | b \right |}}\right )}} - \frac {i \, \sqrt {\pi } \operatorname {erf}\left (-\frac {\sqrt {6} \sqrt {b \arccos \left (c x\right ) + a}}{2 \, \sqrt {b}} + \frac {i \, \sqrt {6} \sqrt {b \arccos \left (c x\right ) + a} \sqrt {b}}{2 \, {\left | b \right |}}\right ) e^{\left (-\frac {3 i \, a}{b}\right )}}{4 \, {\left (\sqrt {6} \sqrt {b} - \frac {i \, \sqrt {6} b^{\frac {3}{2}}}{{\left | b \right |}}\right )} c^{3}} \]
[In]
[Out]
Timed out. \[ \int \frac {x^2}{\sqrt {a+b \arccos (c x)}} \, dx=\int \frac {x^2}{\sqrt {a+b\,\mathrm {acos}\left (c\,x\right )}} \,d x \]
[In]
[Out]